<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ page import="java.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Candiate Registration | Hot Jobs | IT Jobs, Jobs In India</title>
<sx:head />

<script type="text/javascript">
	function confirmPasswordValidation() {

		var pass = document.getElementById("password").value;
		var confirm_pass = document.getElementById("confirmPass").value;
		if ((pass != '' && confirm_pass != '') && pass == confirm_pass) {
			document.getElementById("confirmPass_msg").style.color = "green";
			document.getElementById("confirmPass_msg").innerHTML = "Passwords Match";
		} else {
			document.getElementById("confirmPass_msg").style.color = "red";
			document.getElementById("confirmPass_msg").innerHTML = "Passwords Do Not Match";
		}
	}

	function helper(status) {
		// alert(status);
		var msgs = new Array();
		msgs[0] = "<strong>Enter comma separated skills to show what you are good at</strong><br/>Eg. Management, training, team handling, computers, communication etc.. ";
		msgs[1] = "Enter name of College in which you studied last";
		msgs[2] = "Enter Your branch of specialization eg. Computers, Mechanical, Arts, Civil etc..";
		msgs[3] = "Enter User Name that you want for logging into this website";
		msgs[4] = "Enter your personal email address for future communications with us.";
		msgs[5] = "Password should be 5 to 15 characters long";
		msgs[6] = "Enter your first name";
		msgs[7] = "Enter your last name(Surname)";
		msgs[8] = "Enter your <strong>10 digit</strong> Mobile number";
		msgs[9] = "Name of company in which you are currently working";
		msgs[10] = "Name of your previous employing company";
		msgs[11] = "Your designation in current job";
		
		document.getElementById(status + "_msg").style.color = "green";

		if (status == "clear") {
			alert("0000000000000");
			//document.getElementById(status + "_msg").style.color = "black";
			document.getElementById(status + "_msg").innerHTML = "clear ";
		} else if (status == "institute") {
			//alert("institute");
			document.getElementById(status + "_msg").innerHTML = msgs[1];
		} else if (status == "keySkills") {
			//alert("aaaaaa");
			document.getElementById(status + "_msg").innerHTML = msgs[0];
		} else if (status == "specialization") {
			document.getElementById(status + "_msg").innerHTML = msgs[2];
		} else if (status == "username") {
			document.getElementById(status + "_msg").innerHTML = msgs[3];
		} else if (status == "email") {
			document.getElementById(status + "_msg").innerHTML = msgs[4];
		} else if (status == "password") {
			document.getElementById(status + "_msg").innerHTML = msgs[5];
		} else if(status == "firstName"){
			document.getElementById(status + "_msg").innerHTML = msgs[6];
		}else if(status == "lastName"){
			document.getElementById(status + "_msg").innerHTML = msgs[7];
		}else if(status == "mobileNumber"){
			document.getElementById(status + "_msg").innerHTML = msgs[8];
		}else if(status == "currentEmployer"){
			document.getElementById(status + "_msg").innerHTML = msgs[9];
		}else if(status == "previousEmployer"){
			document.getElementById(status + "_msg").innerHTML = msgs[10];
		}else if(status == "designation"){
			document.getElementById(status + "_msg").innerHTML = msgs[11];
		}
	}
</script>


</head>

<body>
<%
	List<Integer> yearsList = new ArrayList<Integer>();
	Integer curYear = Calendar.getInstance().get(Calendar.YEAR);
	for (int i = 1970; i <= curYear; i++) {
		yearsList.add(new Integer(i));
	}
	request.setAttribute("yearsList", yearsList);
%>


<table cellpadding="20" cellspacing="0" bgcolor="#bfbfbf" width="100%">
	<tr>
		<td>
		<h3><s:text name="jobseeker.registration.title">Content not available</s:text></h3>
		<hr />
		<s:text name="jobseeker.registration.msg">Content not available</s:text>
		</td>
	</tr>
</table>
<br />
<br />
<table align="center" cellpadding="20" cellspacing="0" border="5"
	bordercolor="#bfbfbf" width="100%">
	<tr>

		<td><s:form action="save" theme="simple" name="jsRegFrm"
			javascriptTooltip="true">
			<table align="center" border="0" cellpadding="5" cellspacing="2">
				<tr>
					<td colspan="3" id="reg-form-section-title"><strong>Account
					Information</strong></td>
				</tr>
				<tr>
					<td width="150">User Name:</td>
					<td width="225"><s:textfield name="username" id="username"
						maxlength="15" onfocus="helper(this.id)" /></td>
					<td id="username_msg" width="300"><s:fielderror
						fieldName="username" /></td>
				</tr>
				<tr>
					<td width="150">Password:</td>
					<td width="225"><s:password name="password" maxlength="15"
						id="password" onkeyup="confirmPasswordValidation()"
						onfocus="helper(this.id)" /></td>
					<td width="300" id="password_msg"><s:fielderror
						fieldName="password" /></td>
				</tr>
				<tr>
					<td>Confirm Password</td>
					<td><s:password id="confirmPass"
						onkeyup="confirmPasswordValidation()" /></td>
					<td id="confirmPass_msg"></td>
				</tr>
				<tr>
					<td width="150">Email:</td>
					<td width="225"><s:textfield name="email" id="email"
						maxlength="150" onfocus="helper(this.id)" /></td>
					<td width="300" id="email_msg"><s:fielderror fieldName="email" /></td>
				</tr>
				<tr>
					<td colspan="3" id="reg-form-section-title"><strong>Personal
					&amp; Contact Details</strong></td>
				</tr>

				<tr>
					<td width="150">First Name:</td>
					<td width="225"><s:textfield name="firstName" maxlength="50" id="firstName" onfocus="helper(this.id)"/></td>
					<td width="300" id="firstName_msg"><s:fielderror fieldName="firstName" /></td>
				</tr>
				<tr>
					<td width="150">Last Name:</td>
					<td width="225"><s:textfield name="lastName" id="lastName" maxlength="50" onfocus="helper(this.id)"/></td>
					<td width="300" id="lastName_msg"><s:fielderror fieldName="lastName" /></td>
				</tr>
				<tr>
					<td width="150">Mobile Number:</td>
					<td width="225"><s:textfield name="mobileNumber"
						maxlength="10" id="mobileNumber" onfocus="helper(this.id)"/></td>
					<td width="300" id="mobileNumber_msg"><s:fielderror fieldName="mobileNumber" /></td>
				</tr>
				<tr>
					<td width="150">Gender:</td>
					<td width="225"><s:radio name="gender"
						list="#{'true':'Male','false':'Female'}" /></td>
					<td width="300"><s:fielderror fieldName="gender" /></td>
				</tr>
				<tr>
					<td width="150">Current Location:</td>
					<td width="225"><s:select list='#application.locationList'
						listKey="id" listValue="name" name="currentLocation"></s:select></td>
					<td width="300"><s:fielderror fieldName="currentLocation" /></td>
				</tr>
				<tr>
					<td width="150">Preferred Location:</td>
					<td width="225"><s:select list='#application.locationList'
						listKey="id" listValue="name" name="preferredLocation"></s:select></td>
					<td width="300"><s:fielderror fieldName="preferredLocation" /></td>
				</tr>
				<tr>
					<td width="150">Nationality</td>
					<td width="225"><s:select list='#{"1":"India"}'
						name="nationality" /></td>
					<td width="300"><s:fielderror fieldName="nationality" /></td>
				</tr>
				<tr>
					<td width="150">Current Employer:</td>
					<td width="225"><s:textfield name="currentEmployer" id="currentEmployer"
						maxlength="120" onfocus="helper(this.id)"></s:textfield></td>
					<td width="300" id="currentEmployer_msg"><s:fielderror fieldName="currentEmployer" /></td>
				</tr>
				<tr>
					<td width="150">Previous Employer:</td>
					<td width="225"><s:textfield name="previousEmployer" id="previousEmployer"
						maxlength="120" onfocus="helper(this.id)"/></td>
					<td width="300" id="previousEmployer_msg"><s:fielderror fieldName="previousEmployer" /></td>
				</tr>
				<tr>
					<td width="150">Designation
					<div style="color: grey; font-size: small; float: right;">(Current
					Job)</div>
					</td>
					<td width="225"><s:textfield name="designation" id="designation" onfocus="helper(this.id)"/></td>
					<td width="300" id="designation_msg"><s:fielderror fieldName="designation" /></td>
				</tr>
				<tr>
					<td width="150">Experience:</td>
					<td width="225"><s:select name="expYears"
						list="{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}" />&nbsp;
					Years &nbsp;&nbsp;<s:select name="expMonths"
						list="{0,1,2,3,4,5,6,7,8,9,10,11}" /> &nbsp; Months</td>
					<td width="300"><s:fielderror fieldName="expYears" /> <s:fielderror
						fieldName="expMonths" /></td>
				</tr>
				<%-- <tr>
					<td width="150">Job Category:</td>
					<td width="225"><s:select multiple="false" name="jobCategory"
						list="#{'01':'Software/Hardware','02':'sales','03':'Networking'}" /></td>
					<td width="300"><s:fielderror fieldName="jobCategory" /></td>
				</tr>  --%>
				<tr>
					<td width="150">Key Skills:</td>
					<td width="225"><s:textarea name="keySkills" id="keySkills"
						rows="5" cols="20" wrap="true" onfocus="helper(this.id)" /></td>
					<td width="300" id="keySkills_msg"><s:fielderror
						fieldName="keySkills" /></td>
				</tr>
				<tr>
					<td colspan="3" id="reg-form-section-title"><strong>Education
					Details</strong></td>
				</tr>
				<tr>
					<td width="150">Highest Qualification:</td>
					<td width="225"><s:select name="highestQualification"
						list="#application.qualificationList" listKey="id"
						listValue="name" /></td>
					<td width="300"><s:fielderror fieldName="highestQualification" /></td>
				</tr>
				<tr>
					<td width="150">Specialization</td>
					<td width="225"><s:textfield name="specialization"
						id="specialization" onfocus="helper(this.id)" /></td>
					<td width="300" id="specialization_msg"><s:fielderror
						fieldName="specialization" /></td>
				</tr>
				<tr>
					<td width="150">Year of Passing:</td>
					<td width="225"><s:select list="#request.yearsList"
						name="yearOfPassing" /></td>
					<td width="300"><s:fielderror fieldName="yearOfPassing" /></td>
				</tr>
				<tr>
					<td width="150">Institute</td>
					<td width="225"><s:textfield name="institute" id="institute"
						maxlength="120" onfocus="helper(this.id)" /></td>
					<td width="300" id="institute_msg"><s:fielderror
						fieldName="institute" /></td>
				</tr>
				<tr>
					<td width="150">&nbsp;</td>
					<td width="225"><s:submit value="Register" align="center" cssClass="submit-button"/></td>
					<td width="300">&nbsp;</td>
				</tr>
			</table>
		</s:form></td>
	</tr>
</table>
</body>
</html>